package com.heima.media.feign;

import com.heima.common.dto.ResponseResult;
import com.heima.media.dto.ArticleDto;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @BelongsProject: heima-leadnews
 * @BelongsPackage: com.heima.media.feign
 * @Author: wangjian
 * @CreateTime: 2022-07-02  18:50
 * @Description: TODO
 * @Version: 1.0
 */
public interface ArticleFeign {
    /**
     * @description: 保存文章
     * @author: wangjian
     * @date: 2022/7/2 18:50
     * @param: dto
     * @return: com.heima.common.dto.ResponseResult<java.lang.Long>
     **/
    @PostMapping("/api/v1/article")
    public ResponseResult<Long> saveArticle(@RequestBody ArticleDto dto) ;

}
